﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using SdmxMl.Structure;

namespace PluginMeb
{
    public partial class DlgAddRow : Telerik.WinControls.UI.RadForm
    {
        public CodeType SchulartFullCode { get { return comboBoxSchulart.SelectedItem as CodeType; } }

        public DlgAddRow(List<CodeType>availablesCodes)
        {
            InitializeComponent();
            foreach (CodeType c in availablesCodes)
                comboBoxSchulart.Items.Add(c);
            comboBoxSchulart.SelectedIndex = 0;
        }

        private void radButtonOk_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
        }
    }
}
